package com.mooc.lib_user

import com.mooc.lib_common.model.HomeFeedEntity
import com.mooc.lib_network.entity.BaseEntity
import com.mooc.lib_user.model.LoginEntity
import com.mooc.lib_user.model.UserValuesEntity
import retrofit2.http.GET
import retrofit2.http.Query

interface ApiService {
    @GET("user/insert")
    suspend fun requestInsertUser(@Query("avatar")avatar : String,
                                  @Query("description")description:String,
                                  @Query("expires_time")expires_time:Long,
                                  @Query("followCount")followCount:Int,
                                  @Query("likeCount")likeCount:Int,
                                  @Query("name")name:String,
                                  @Query("qqOpenId")qqOpenId:String,
                                  @Query("topCommentCount")topCommentCount:Int):
            BaseEntity<LoginEntity>
    @GET("user/query")
    suspend fun requestUserValues(@Query("userId")userId : Int):
            BaseEntity<UserValuesEntity>
}